package com.datawin.taotaocheche.bean;

import com.datawin.taotaocheche.comm.Constants;
import com.datawin.taotaocheche.util.StringUtils;

/**
 * Created by chenjian on 17/12/4.
 */

public class BannerInfo {

    /**
     * id : 3
     * title : 1
     * type : 1
     * imgUrl : /resource/upload/images/2017/11/03/1509671187448001.jpg
     * linkUrl : null
     * status : 1
     * createTime : 2017-10-31 13:35:36
     * updateTime : 2017-11-27 13:23:54
     */

    private String id;
    private String title;
    private String type;
    private String imgUrl;
    private String linkUrl;
    private String status;
    private String createTime;
    private String updateTime;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getImgUrl() {
        return StringUtils.isEmpty(imgUrl)?"": Constants.IMAGEURL+imgUrl;
    }

    public void setImgUrl(String imgUrl) {
        this.imgUrl = imgUrl;
    }

    public String getLinkUrl() {
        return linkUrl;
    }

    public void setLinkUrl(String linkUrl) {
        this.linkUrl = linkUrl;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public String getCreateTime() {
        return createTime;
    }

    public void setCreateTime(String createTime) {
        this.createTime = createTime;
    }

    public String getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(String updateTime) {
        this.updateTime = updateTime;
    }
}
